<div itemscope itemtype="http://data-vocabulary.org/Review-aggregate" style="display:none;">
    <span itemprop="itemreviewed"><?php echo $name; ?></span>
    <span itemprop="rating" itemscope itemtype="http://data-vocabulary.org/Rating">
        <span itemprop="average"><?php echo $microdata['average']; ?></span> out of <span itemprop="best">5</span>
    </span>
    based on
    <span itemprop="count"><?php echo $microdata['total']; ?></span> user reviews.
</div>

<table class="crmobile -table">
<?php
foreach ($reviews as $review) { ?>
    <tr>
        <td width="100%">
        <?php
            if (strpos($exclude, 'rating') === false) {
                for ($i=0; $i < $review['rating']; $i++) { 
                echo "<img style='border:none; box-shadow:none;' src='{$star}' />";
                }
                echo '<br/>';
            }
            if (strpos($exclude, 'date') === false) {
                echo date('M d, Y', strtotime($review['review_date'])).'<br/>';
            }
            if (strpos($exclude, 'name') === false) {
                echo $review['reviewer_name'].'<br/>';
            }
        ?><br />
        <?php
            if (strpos($exclude, 'review') === false) {
                echo stripslashes($review['review']);
            }
        ?><br /><br /><hr width="50%">
        </td>
    </tr>
<?php } ?>
</table>
